﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000343 RID: 835
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ComposeItemScRsp : IMessage<ComposeItemScRsp>, IMessage, IEquatable<ComposeItemScRsp>, IDeepCloneable<ComposeItemScRsp>, IBufferMessage
	{
		// Token: 0x17000ADC RID: 2780
		// (get) Token: 0x0600258A RID: 9610 RVA: 0x00069BBF File Offset: 0x00067DBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ComposeItemScRsp> Parser
		{
			get
			{
				return ComposeItemScRsp._parser;
			}
		}

		// Token: 0x17000ADD RID: 2781
		// (get) Token: 0x0600258B RID: 9611 RVA: 0x00069BC6 File Offset: 0x00067DC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ComposeItemScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000ADE RID: 2782
		// (get) Token: 0x0600258C RID: 9612 RVA: 0x00069BD8 File Offset: 0x00067DD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ComposeItemScRsp.Descriptor;
			}
		}

		// Token: 0x0600258D RID: 9613 RVA: 0x00069BDF File Offset: 0x00067DDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeItemScRsp()
		{
		}

		// Token: 0x0600258E RID: 9614 RVA: 0x00069BE8 File Offset: 0x00067DE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeItemScRsp(ComposeItemScRsp other) : this()
		{
			this.composeId_ = other.composeId_;
			this.retcode_ = other.retcode_;
			this.count_ = other.count_;
			this.returnItemList_ = ((other.returnItemList_ != null) ? other.returnItemList_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600258F RID: 9615 RVA: 0x00069C4C File Offset: 0x00067E4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeItemScRsp Clone()
		{
			return new ComposeItemScRsp(this);
		}

		// Token: 0x17000ADF RID: 2783
		// (get) Token: 0x06002590 RID: 9616 RVA: 0x00069C54 File Offset: 0x00067E54
		// (set) Token: 0x06002591 RID: 9617 RVA: 0x00069C5C File Offset: 0x00067E5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ComposeId
		{
			get
			{
				return this.composeId_;
			}
			set
			{
				this.composeId_ = value;
			}
		}

		// Token: 0x17000AE0 RID: 2784
		// (get) Token: 0x06002592 RID: 9618 RVA: 0x00069C65 File Offset: 0x00067E65
		// (set) Token: 0x06002593 RID: 9619 RVA: 0x00069C6D File Offset: 0x00067E6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000AE1 RID: 2785
		// (get) Token: 0x06002594 RID: 9620 RVA: 0x00069C76 File Offset: 0x00067E76
		// (set) Token: 0x06002595 RID: 9621 RVA: 0x00069C7E File Offset: 0x00067E7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Count
		{
			get
			{
				return this.count_;
			}
			set
			{
				this.count_ = value;
			}
		}

		// Token: 0x17000AE2 RID: 2786
		// (get) Token: 0x06002596 RID: 9622 RVA: 0x00069C87 File Offset: 0x00067E87
		// (set) Token: 0x06002597 RID: 9623 RVA: 0x00069C8F File Offset: 0x00067E8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList ReturnItemList
		{
			get
			{
				return this.returnItemList_;
			}
			set
			{
				this.returnItemList_ = value;
			}
		}

		// Token: 0x06002598 RID: 9624 RVA: 0x00069C98 File Offset: 0x00067E98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ComposeItemScRsp);
		}

		// Token: 0x06002599 RID: 9625 RVA: 0x00069CA8 File Offset: 0x00067EA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ComposeItemScRsp other)
		{
			return other != null && (other == this || (this.ComposeId == other.ComposeId && this.Retcode == other.Retcode && this.Count == other.Count && object.Equals(this.ReturnItemList, other.ReturnItemList) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600259A RID: 9626 RVA: 0x00069D18 File Offset: 0x00067F18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ComposeId != 0U)
			{
				num ^= this.ComposeId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Count != 0U)
			{
				num ^= this.Count.GetHashCode();
			}
			if (this.returnItemList_ != null)
			{
				num ^= this.ReturnItemList.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600259B RID: 9627 RVA: 0x00069D9F File Offset: 0x00067F9F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600259C RID: 9628 RVA: 0x00069DA7 File Offset: 0x00067FA7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600259D RID: 9629 RVA: 0x00069DB0 File Offset: 0x00067FB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Count != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Count);
			}
			if (this.returnItemList_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.ReturnItemList);
			}
			if (this.ComposeId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.ComposeId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600259E RID: 9630 RVA: 0x00069E40 File Offset: 0x00068040
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ComposeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ComposeId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Count != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Count);
			}
			if (this.returnItemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReturnItemList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600259F RID: 9631 RVA: 0x00069EC8 File Offset: 0x000680C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ComposeItemScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ComposeId != 0U)
			{
				this.ComposeId = other.ComposeId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Count != 0U)
			{
				this.Count = other.Count;
			}
			if (other.returnItemList_ != null)
			{
				if (this.returnItemList_ == null)
				{
					this.ReturnItemList = new ItemList();
				}
				this.ReturnItemList.MergeFrom(other.ReturnItemList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060025A0 RID: 9632 RVA: 0x00069F58 File Offset: 0x00068158
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060025A1 RID: 9633 RVA: 0x00069F64 File Offset: 0x00068164
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 26U)
				{
					if (num == 8U)
					{
						this.Count = input.ReadUInt32();
						continue;
					}
					if (num == 26U)
					{
						if (this.returnItemList_ == null)
						{
							this.ReturnItemList = new ItemList();
						}
						input.ReadMessage(this.ReturnItemList);
						continue;
					}
				}
				else
				{
					if (num == 48U)
					{
						this.ComposeId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000F22 RID: 3874
		private static readonly MessageParser<ComposeItemScRsp> _parser = new MessageParser<ComposeItemScRsp>(() => new ComposeItemScRsp());

		// Token: 0x04000F23 RID: 3875
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F24 RID: 3876
		public const int ComposeIdFieldNumber = 6;

		// Token: 0x04000F25 RID: 3877
		private uint composeId_;

		// Token: 0x04000F26 RID: 3878
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04000F27 RID: 3879
		private uint retcode_;

		// Token: 0x04000F28 RID: 3880
		public const int CountFieldNumber = 1;

		// Token: 0x04000F29 RID: 3881
		private uint count_;

		// Token: 0x04000F2A RID: 3882
		public const int ReturnItemListFieldNumber = 3;

		// Token: 0x04000F2B RID: 3883
		private ItemList returnItemList_;
	}
}
